package jp.co.toshiba.ffsa.service.common;

import java.util.List;

import jp.co.toshiba.ffsa.entity.Information;

public class InformationService  extends AbstractService<Information> {

    public Information findById(String informationId) {
        return select().id(informationId).getSingleResult();
    }

    public List<Information> selectAllPaged(int startIndex,int numItems){
        return findAllPaged("informationId", startIndex, numItems);
    }

    public int deleteItem(String informationId) {
        Information information = findById(informationId);
        return removeItem(information);
    }

    public void updateItem(Information information){
        update(information);
    }
}